import {
    Home,
} from '../pages'
import baseRouters from './base'
export type RouterType = {
    path?: string,
    component?: React.LazyExoticComponent<any>,
    root?: string[],
    notExect?: boolean,
    from?: string,
    to?: string,
    icon?: string,
    title?: string,
    redirect?:string
}

const HomeRouter: RouterType = {
    path: '/home',
    component: Home,
    root: [],
    title:"首页",
    redirect:'/home',
    icon:"iconfont icon-shouye"
}
// 总路由
const Routers: RouterType[] = ([
    HomeRouter,
    ...baseRouters
])

export {
    Routers
}